<div class="payment-voucher">
	<div class="section">
		<div class="block">
			<h2><?php echo $courseAttendence->course_name; ?></h2>
			<div class="table-block">
				<table class="form-table">
					<tr>
						<th scope="row" width="170">
							Course Provider
						</th>
						<td>
							<?php echo $courseAttendence->course_provider_name; ?>
							<?php echo $form->hiddenField($courseAttendence, '[' . $index . ']id'); ?>
							<?php echo $form->hiddenField($courseAttendence, '[' . $index . ']user_id'); ?>
						</td>
						<th scope="row" width="170">
							<?php echo $form->labelEx($courseAttendence, '[' . $index . ']course_completed_date'); ?>
						</th>
						<td>
							<?php
							$form->widget('PsJuiDatePicker', array(
								'model' => $courseAttendence,
								'attribute' => '[' . $index . ']course_completed_date',
								'options' => array(
									'showButtonPanel' => false,
									'changeYear' => true,
									'dateFormat' => 'dd-mm-yy',
								),
							));
							?>
							<?php echo $form->error($courseAttendence, '[' . $index . ']course_completed_date'); ?>
						</td>
					</tr>
					<tr>
						<th scope="row" width="170">
							<?php echo $form->labelEx($courseAttendence, '[' . $index . ']core_cpd_hour'); ?>
						</th>
						<td>
							<?php echo $form->textField($courseAttendence, '[' . $index . ']core_cpd_hour'); ?>
							<?php echo $form->error($courseAttendence, '[' . $index . ']core_cpd_hour'); ?>
						</td>
						<th scope="row" width="170">
							<?php echo $form->labelEx($courseAttendence, '[' . $index . ']non_core_cpd_hour'); ?>
						</th>
						<td>
							<?php echo $form->textField($courseAttendence, '[' . $index . ']non_core_cpd_hour'); ?>
							<?php echo $form->error($courseAttendence, '[' . $index . ']non_core_cpd_hour'); ?>
						</td>
					</tr>
					<tr>
						<th scope="row" width="170">
							<?php echo $form->labelEx($courseAttendence, '[' . $index . ']user_id', array('label' =>'Agent Name')); ?>
						</th>
						<td>
							<?php echo $courseAttendence->user->name; ?>
						</td>
						<th scope="row" width="170">
							<?php echo $form->labelEx($courseAttendence, '[' . $index . ']approval_details', array('label' => 'Reject Reason')); ?>
						</th>
						<td>
							<?php echo $form->textArea($courseAttendence, '[' . $index . ']approval_details'); ?>
							<?php echo $form->error($courseAttendence, '[' . $index . ']approval_details'); ?>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>